<!-- 物资点修改 -->

<template>
  <WebForm path="point">
    <EasyRow col3>
      <FormInput label="物资点名称" bind="name" :max="20" word5 required />
      <FormTree :label="`所在${CORE.MAP.REGION}`" bind="areaId, areaName" :dict="CORE.REGION.DICT" required />
      <FormNum label="排序" bind="sort" :min="1" :max="999" initMin noTip required />
    </EasyRow>

    <FormTextarea label="具体位置" bind="position" :rows="1" word5 required />

    <EditButton />
  </WebForm>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'PointEdit',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb('point', 'point_')],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
